package com.zx.service.dj;

import java.util.List;

import com.zx.model.dj.StockMaster;

/**
 * 
 * @author zx
 *
 */
public interface StockManageService {

    /**
     * 入库
     * @param brand
     * @param model
     * @param color
     * @param size
     * @param count
     * @param price
     * @param supplier
     * @param arrivalTime
     */
    public void addStockMaster(
            String brand, String model, String color, String size, Integer count, String price,
            String supplier, String arrivalTime);
    
    /**
     * 总仓查询
     * @param startIndex
     * @param pageSize
     * @param orderField
     * @param orderType
     * @return
     */
    public List<StockMaster> selStockMasters(Integer startIndex,Integer pageSize, int orderType);
    public List<StockMaster> selStockMastersCondition(Integer startIndex,Integer pageSize, int orderType,String sbrand,String smodel,String scolor,String ssiz);
    public int selStockMastersCount(String sbrand,String smodel,String scolor,String ssiz);
    
    /**
     * 出库
     * @param mid
     * @param outCount
     * @param price
     * @param name
     * @param outTime
     * @return
     */
    public boolean deleteGoods(Long mid, Integer outCount, String price, String name,String outTime);
    
    /**
     * 分仓查询
     * @param startIndex
     * @param pageSize
     * @param orderField
     * @param orderType
     * @return
     */
    public List<StockMaster> selStockBranch(Integer pageIndex,Integer pageSize, int orderType);
    public List<StockMaster> selStockBranchCondition(
            Integer pageIndex,Integer pageSize, int orderType,String sbrand,String smodel,String scolor,String ssiz
            ,String shopname,String remindCount);
    public int selStockBranchCount(String sbrand,String smodel,String scolor,String ssize,String shopname
            ,String remindCount);
}
